import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { Ng2BootstrapModule } from 'ng2-bootstrap';
import { WjInputModule } from 'wijmo/wijmo.angular2.input';
import { WjChartModule } from 'wijmo/wijmo.angular2.chart';
import { WjGridModule } from 'wijmo/wijmo.angular2.grid';
import { MdlModule } from 'angular2-mdl';


import { AppComponent } from './app.component';
import { LoginComponent } from './login/login.component';
import { AuthService } from './core/auth.service';
import { TodoService } from './todo/services/todo.service';
import { routing } from './app.routes';
import { TodoModule } from './todo/todo.module';


@NgModule({
  declarations: [
    AppComponent,
    LoginComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    routing,
    // Ng2BootstrapModule.forRoot(),
    WjChartModule,
    WjInputModule,
    WjGridModule,
    TodoModule,
    MdlModule
  ],
  providers: [AuthService, {provide: 'todoService', useClass: TodoService}],
  bootstrap: [AppComponent]
})
export class AppModule { }
